package com.example.duanjunjie.learn.http.fetcher;

import rx.Observable;

/**
 * Created by duanjunjie on 2018/2/12.
 */

public abstract class BaseFetcher<T,U> implements Fetcher<T,U> {

    @Override
    public Observable<U> fetch(T t) {
        return doFetch(t);
    }

    protected abstract Observable<U> doFetch(T t);
}
